package com.sp.app.service.impl;

import com.sp.app.dao.CurelationMapper;
import com.sp.app.domain.Curelation;
import com.sp.app.service.CurelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("CurelationService")
public class CurelationServiceImpl implements CurelationService {

    @Autowired
    private CurelationMapper curelationMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return curelationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Curelation record) {
        return curelationMapper.insert(record);
    }

    @Override
    public Curelation selectByPrimaryKey(String id) {
        return curelationMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(Curelation record) {
        return curelationMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Curelation> queryAll(Curelation curelation) {
        return curelationMapper.queryAll(curelation);
    }

    @Override
    public List<Map<String, String>> courseview(String type,String id){
        return curelationMapper.courseview(type,id);
    }
}
